
package urbanparks;

/**
 * A class to store ParkManager information.
 * 
 * @author Dallas Rosson
 * @version 1.0 2/22/2012
 */
public class ParkManager extends User {

  /**
   * The Park Manager's phone number.
   */
  private String my_phone_number;

  // Constructor

  /**
   * Creates a new Park Manager.
   * 
   * @param the_first_name The user's first name.
   * @param the_last_name The user's last name.
   * @param the_email The user's email address.
   * @param the_permission_level The user's permission
   *          level.
   * @param the_contact_number The Volunteer's first contact
   *          number.
   */
  public ParkManager(final String the_first_name,
      final String the_last_name, final String the_email,
      final int the_permission_level,
      final String the_contact_number) {

    setFirstName(the_first_name);
    setLastName(the_last_name);
    setEmailAddress(the_email);
    setPermissionLevel(the_permission_level);
    my_phone_number = the_contact_number;

  }

  // Setters

  /**
   * Sets the Park Manager's phone number to the provided
   * input.
   */
  public void setPhoneNumber(final String the_number) {

    my_phone_number = the_number;

  }

  // Getters

  /**
   * @return The Park Manager's phone number.
   */
  public String getPhoneNumber() {

    return my_phone_number;

  }
  
  /**
   * Returns Valunteer class string, CSV:
   * First, Last, Email, Permission, Number
   */
  public String getFileString()
  {
    return getFirstName() + "," + getLastName() + "," + 
           getEmailAddress() + "," + getPermissionLevel() + "," +
           getPhoneNumber() + ",";
  }
}
